
import VueRouter from "vue-router"

import home from "./components/tabar/home.vue"
import member from "./components/tabar/member.vue"
import shopcar from "./components/tabar/shopcar.vue"
import search from "./components/tabar/search.vue"
import news from "./components/newlist/new.vue"
import newsinfo from "./components/newlist/newsinfo.vue"
import photolist from "./components/photos/photolist.vue"
import photoinfo from "./components/photos/photoinfo.vue"
import goodslist from "./components/goods/goodslist.vue"
import goodsinfo from "./components/goods/goodinfo.vue"
import godesc from "./components/goods/desc.vue"
import gocomm from "./components/goods/comm.vue"

let router = new VueRouter({
    routes:[
        {path: "/", redirect: "/home"},
        {path: "/home", component: home},
        {path: "/member", component: member},
        {path: "/shopcar", component: shopcar},
        {path: "/search", component: search},
        {path: "/home/news", component: news},
        {path: "/home/newsinfo/:id", component: newsinfo},
        {path: "/home/photolist", component:photolist},
        {path: "/home/photolist/photoinfo/:id", component: photoinfo},
        {path: "/home/goodslist", component: goodslist},
        {path: "/home/goodslist/goodinfo/:id", component: goodsinfo},
        {path: "/home/goodslist/goodinfo/desc/:id", component: godesc, name: "godesc"},
        {path: "/home/goodslist/goodinfo/comm/:id", component: gocomm, name: "gocomm"}
    ],
    linkActiveClass: "mui-active"
});

export default router